package esi.t2no1.dao.contract;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Repository;

import esi.t2no1.ws.model.ContractOutput;

/**
 * @author Kaarel Jõgeva
 */
@Repository
public interface ContractDAO {
    Long createContract(ContractDTO contractDTO);

    ContractDTO getContract(Long id);

    ContractOutput getContractOutput(String clientContractNumber);

    List<ContractDTO> getUserContracts(String userName, Date userBirthDate);

	List<ContractDTO> getContracts();
	
	List<String> getFacilityIds();

	String getAreaId(String facilityId);

	Integer getContractByDate(String areaId, String facilityId,
			Date contractStartDate);
	
}
